<?php
    if ( $msg = flash('error')) {
        echo "<div class='flash_error'>$msg</div>";
    }
    if ( $msg = flash('notice')) {
        echo "<div class='flash_notice'>$msg</div>";
    }
?>
<div id='login_form'>
    
<?php echo  form_tag( 'index', array('id'=>'login-form')); ?>

<?php echo  hidden_field_tag('login_referrer',$login_referrer)?>

<p><b>Username:</b><br>
    <?php echo  text_field_tag('user_login',null, array('class'=>'required','autocomplete'=>'off'))?></p>
    
<p><b>Password:</b><br>
    <?php echo password_field_tag('user_password',null,array('class'=>'required','autocomplete'=>'off'))?></p>
    
<p><?php echo submit_tag('Log In')?></p>

<?php echo end_form_tag(); ?>
<?php echo validate_form('login-form') ?>
<p id='install-me'><?php echo  link_to('Forgot your password?',array('controller'=>'login' ,'action'=>'forgot_password')
);?></p>
</div>
